package cn.ddiancan.xddcloud.common.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @TableName xdd_user_t
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class UserVO extends BaseVO implements Serializable {

    /**
     * userid
     */
    private String userId;

    /**
     * 员工钉钉用户ID
     */
    private String dingUserId;

    /**
     * unionId
     */
    @Schema(description = "unionId")
    private String unionId;

    /**
     * 用户名称
     */
    @Schema(description = "用户名称")
    private String userName;

    /**
     * 用户名称
     */
    @Schema(description = "用户账号")
    private String userAccount;


    /**
     * 密码
     */
    @Schema(description = "密码")
    private String password;

    /**
     * 密码
     */
    @Schema(description = "初始化密码，不展示")
    private String initPassword;

    /**
     * 工号
     */
    @Schema(description = "工号")
    private String jobNumber;

    /**
     * 登录名称
     */
    @Schema(description = "登录名称")
    private String nickName;

    /**
     * 部门ids
     */
    @Schema(description = "部门ids")
    private String deptId;

    /**
     * 性别
     */
    @Schema(description = "性别")
    private String sex;

    /**
     * 电话
     */
    @Schema(description = "电话")
    private String phone;

    /**
     * 是否可用（0：可用 1：不可用）
     */
    @Schema(description = "是否可用")
    private String enable;

    /**
     * 企业邮箱
     */
    @Schema(description = "企业邮箱")
    private String orgEmail;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String avatar;

    /**
     * 是否激活 1：激活
     */
    @Schema(description = "是否激活 1：激活")
    private Integer active;

    /**
     * 是否管理员 1：是管理员
     */
    @Schema(description = "是否管理员 1：是管理员")
    private Integer admin;

    /**
     * 是否老板 1：是老板
     */
    @Schema(description = "是否老板 1：是老板")
    private Integer boss;

    /**
     * 职位信息
     */
    @Schema(description = "职位信息")
    private String position;

    /**
     * 部门信息
     */
    @Schema(description = "部门信息")
    private String deptName;

    /**
     * 入职时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "入职时间")
    private Date hireDate;

    /**
     * 门店地址
     */
    @Schema(description = "门店地址")
    private String storeAddress;

    /**
     * 入驻时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "入驻时间")
    private Date checkInTime;

    /**
     * 入驻天数
     */
    @Schema(description = "入驻天数")
    private Integer checkInDay;

    /**
     * 客服电话
     */
    @Schema(description = "客服电话")
    private String customerServiceTelephone;


    private static final long serialVersionUID = 1L;

    private List<String> userPermissions;

    private List<MenuVO> userMenus;

    private List<RoleVO> userRoles;

    private List<String> deptNameList;

    private Map<String,Object> properties;
}